<%--
  Created by IntelliJ IDEA.
  User: 12138
  Date: 2020/12/22
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>仓颉博客</title>
    <link rel="stylesheet" type="text/css" href="css/style_login.css">
    <script type="text/javascript" src="js/jquery-3.5.1.js"></script>
    <script type="text/javascript" src="js/vector.js"></script>
    <script type="text/javascript" src="js/login.js"></script>
</head>
<body>
<div id="container">
    <div id="output">
        <div class="containerT">
            <h1 id="ti">用户登录</h1>
            <form class="form" id="entry_form" method="post" action="/QM_war_exploded/login">
                <input type="text" placeholder="用户名" id="entry_name" name="username" >
                <input type="password" placeholder="密码" id="entry_password" name="password">
                <a id="wan" style="color: #FFF">如忘记密码请联系管理员</a><br>
                <input type="submit" id="btn_login" value="登录">
                <button type="button" id="btn_add">注册</button>

                <div id="prompt" class="prompt"></div>
            </form>
        </div>
    </div>
</div>
</body>
<%
    String status=(String)session.getAttribute("status");
    String msg=(String)session.getAttribute("msg");
    System.out.println("status:"+status);
    System.out.println("msg:"+msg);
    if("0".equals(status)){%>
<script>
    alert("${msg}")
</script>
<% }
    if("1".equals(status)){
%>
<script type="text/javascript">
    alert("${msg}");
</script>
<% }
    status="";
%>

</html>